export const searchForm = [
    {
        type: 'rangePicker',
        key: 'startClassTime',
        label: '支付时间',
        props: {

        }
    },
    {
        type: 'select',
        key: 'department',
        label: '学部',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    },
    {
        type: 'select',
        key: 'firstClassifyName',
        // 被依赖项；用于改变时，清空控制项
        controlItems: ['secondClassifyName'],
        label: '一级渠道',
        optionsConfig: {
            options: [],
            pager: {},
        },
        props: {
            mode: 'multiple'
        }
    },
    {
        type: 'select',
        key: 'secondClassifyName',
        // 联动
        dependItemKey: 'firstClassifyName',
        label: '二级渠道',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple'
        }
    },
    {
        type: 'select',
        key: 'providerName',
        label: '渠道代理',
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple',
            showSearch: true,
            filterOption: false,
        }
    },
];

// 页面id
export const pageId = {
    0: {
        id: 'orderPaidThisMonth',
        title: '本月支付订单',
        selectID: 'selectUnit_2'
    },
};

// 纬度id由页面id 和 纬度key拼接成, 小驼峰
export const getDimensionId = (index, searchKey) => {
    if (searchKey) {
        const newSearchKey = searchKey.slice(0, 1).toUpperCase() + searchKey.slice(1);

        return pageId[index].id + newSearchKey;
    }

    return '';
};

// 每个页面里细分了模块，一个模块是一个看板
export const dashBoardList = [
    {
        dashboardName: 'orderPaidThisMonthPartOne',
        dashboardId: 'orderPaidThisMonthPartOne'
    },
    {
        dashboardName: 'orderPaidThisMonthPartTwo',
        dashboardId: 'orderPaidThisMonthPartTwo'
    },
    {
        dashboardName: 'orderPaidThisMonthPartThree',
        dashboardId: 'orderPaidThisMonthPartThree'
    },
    {
        dashboardName: 'orderPaidThisMonthPartFour',
        dashboardId: 'orderPaidThisMonthPartFour'
    },
    {
        dashboardName: 'orderPaidThisMonthPartFive',
        dashboardId: 'orderPaidThisMonthPartFive'
    },
    {
        dashboardName: 'orderPaidThisMonthPartSix',
        dashboardId: 'orderPaidThisMonthPartSix'
    }
];

export const META = {
    PART_ONE_CARD_ONE: 'orderPaidThisMonthPartOne_card_1',
    PART_ONE_SIMPLE_EXCEL_ONE: 'orderPaidThisMonthPartOne_simple_excel_1',
    PART_ONE_CARD_TWO: 'orderPaidThisMonthPartOne_card_2',
    PART_ONE_SIMPLE_EXCEL_TWO: 'orderPaidThisMonthPartOne_simple_excel_2',
    PART_ONE_CARD_THREE: 'orderPaidThisMonthPartOne_card_3',
    PART_ONE_SIMPLE_EXCEL_THREE: 'orderPaidThisMonthPartOne_simple_excel_3',
    PART_TWO_COMPOSITE_ONE: 'orderPaidThisMonthPartTwo_composite_1',
    PART_THREE_PIE_ONE: 'orderPaidThisMonthPartThree_pie_1',
    PART_FOUR_COMPOSITE_ONE: 'orderPaidThisMonthPartFour_composite_1',
    PART_FOUR_BAR_ONE: 'orderPaidThisMonthPartFour_bar_1',
    PART_FIVE_PIE_ONE: 'orderPaidThisMonthPartFive_pie_1',
    PART_FIVE_PIE_TWO: 'orderPaidThisMonthPartFive_pie_2',
    PART_FIVE_PIE_THREE: 'orderPaidThisMonthPartFive_pie_3',
    PART_SIX_PIE_ONE: 'orderPaidThisMonthPartSix_pie_1',
    PART_SIX_COMPOSITE_ONE: 'orderPaidThisMonthPartSix_composite_1',
    PART_SIX_COMPOSITE_TWO: 'orderPaidThisMonthPartSix_composite_2',
    PART_SIX_COMPOSITE_THREE: 'orderPaidThisMonthPartSix_composite_3',
};
